<div id="rokstories-<?php echo $id; ?>" class="rokstories-<?php echo $rokstories_layout; ?>"  <?php echo $style; ?>>
	<div class="feature-block">
		<div class="image-container<?php echo $image_pad; ?>" style="float: <?php echo $rokstories_contentpos; ?>">
			<div class="image-full"></div>
			
			<?php if ($rokstories_showmask == '1'):?>
			<div class="image-mask"></div>
			<?php endif;?>
			
			<div class="image-small">
			
			    <?php $rokstories = new WP_Query($query_type.'&meta_key=_rokstories_image&posts_per_page='.$rokstories_artcount.'&orderby='.$rokstories_order);
				if($rokstories->have_posts()) : while($rokstories->have_posts()) : $rokstories->the_post(); ?>
		
					<?php $image = get_post_meta($post->ID, '_rokstories_image', TRUE); ?>
			    
				    <?php if($rokstories_image_generator == 'default') :
			
		  				$img = rokstories_resize('', $image, $rokstories_thumbw, $rokstories_thumbh, true); ?>
		  			
		  				<img src="<?php echo $img['url']; ?>" class="feature-sub" alt="<?php the_title(); ?>" />
		  		
		  			<?php else : ?>
		  		
			   			<img src="<?php echo $rokstories_plugin_url.'/thumb.php?src='.$image.'&amp;w='.$rokstories_thumbw.'&amp;h='.$rokstories_thumbh.'&amp;zc=1&amp;q=75'; ?>" class="feature-sub" alt="<?php the_title(); ?>" />
		   			
		   			<?php endif; ?>
				
				<?php endwhile; endif; ?>
				
			</div>
				<div class="feature-block-tl"></div>
				<div class="feature-block-tr"></div>
				<div class="feature-block-bl"></div>
				<div class="feature-block-br"></div>
				
				<?php if ($rokstories_labeltitle == 'true') : ?>
				<div class="labels-title">
				
					<?php $rokstories = new WP_Query($query_type.'&meta_key=_rokstories_image&posts_per_page='.$rokstories_artcount.'&orderby='.$rokstories_order);
					if($rokstories->have_posts()) : while($rokstories->have_posts()) : $rokstories->the_post(); ?>

					<div class="feature-block-title">
						<div class="feature-block-title2"></div>
						<div class="feature-block-title3">
							<?php if ($rokstories_linklabel == 'true'): ?>
								<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
							<?php else: ?>
								<?php the_title(); ?>
							<?php endif; ?>
						</div>
					</div>
					
					<?php endwhile; endif; ?>
					
				</div>
				<?php endif; ?>
		</div>
		<div class="desc-container">
		
		    <?php $rokstories = new WP_Query($query_type.'&meta_key=_rokstories_image&posts_per_page='.$rokstories_artcount.'&orderby='.$rokstories_order);
			if($rokstories->have_posts()) : while($rokstories->have_posts()) : $rokstories->the_post(); ?>
	
			<?php $more = 0; ?>
	        
			<div class="description<?php echo $content_pad; ?>">
			
				<?php if ($rokstories_title == 'true'): ?>
					<span class="feature-title"><?php the_title(); ?></span>
				<?php endif;?>
				
				<?php if ($rokstories_date == 'true'): ?>
				    <span class="created-date"><?php the_time('l, j F o'); ?></span>
				<?php endif;?>
	
				<?php if ($rokstories_content == 'true'): ?>
					
					<?php if ($rokstories_display == 'content') { ?>
							
						<div class="feature-desc"><?php echo strip_only_tags(get_the_content(false), 'p'); ?></div>
						
					<?php } else { ?>
				
						<div class="feature-desc"><?php echo strip_only_tags(get_the_excerpt(), 'p'); ?></div>
					
					<?php } ?>
				
				<?php endif; ?>
    
				<?php if ($rokstories_readmore == 'true') :
					if ($rokstories_legacy_readmore == 'true') : ?>
						<div class="clr"></div><div class="readon-wrap1"><div class="readon1-l"></div><a href="<?php the_permalink(); ?>" class="readon-main"><span class="readon1-m"><span class="readon1-r"><?php echo $rokstories_readmore_label; ?></span></span></a></div><div class="clr"></div>
					<?php else : ?>
						<a href="<?php the_permalink(); ?>" class="readon"><span><?php echo $rokstories_readmore_label; ?></span></a>								
					<?php endif; ?>
				<?php endif; ?>
			
			</div>
	    	
	    	<?php endwhile; endif; ?>
	        
		</div>
		<?php if ($rokstories_layout == 'layout5') {
			echo "<div class='vertical-list-wrapper'><ul class='vertical-list'>";
			echo "<li class='previous'><span class='feature-arrow-l'></span></li>";
		?>
			
			<?php $i = 0; ?>
					
			<?php $rokstories = new WP_Query($query_type.'&meta_key=_rokstories_image&posts_per_page='.$rokstories_artcount.'&orderby='.$rokstories_order);
			if($rokstories->have_posts()) : while($rokstories->have_posts()) : $rokstories->the_post(); ?>
			
				<?php 
					if ($i == $rokstories_firstart) $class = ' active';
					else $class = '';
				?>
				
				<li class="feature-number-sub listitem-<?php echo ($i+1).$class; ?>"><span><?php echo ($i + 1); ?></span></li>
				
				<?php $i++; ?>
				
			<?php endwhile; endif;
			
			echo "<li class='next'><span class='feature-arrow-r'></span></li>";
			echo "</ul></div>";
		} ?>
	</div>
</div>